#coding:utf-8

from CollectSpider.kancloud import db

import re

db.create_engine("root","123456", "spider_test","192.168.51.100",3306)
s=['1','2']
str="("
i=0
for val in s:
    i+=1
    if i==len(s):
        str+=val
    else:
        str+=val
        str+=","

str+=")"

print str
print db.select("select * from spider_task where id=? ",38)

